var path = require('path');

var pageArr = [
  'index/login',
  'index/index',
  'alert/index',
];
var configEntry = {};
pageArr.forEach((page) => {
  configEntry[page] = path.resolve(__dirname, page + '/page');
});

console.log(configEntry)
